# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=noson
pkgver=2.8.6
pkgrel=0
pkgdesc="An easy client interface to drive SONOS player"
url="https://github.com/janbar/noson"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-dev $pkgname-dbg"
makedepends="
	cmake
	flac-dev
	openssl-dev
	pulseaudio-dev
	zlib-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson/archive/$pkgver.tar.gz
	"
options="!check" # No unit tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=1
	make -C build
}

package() {
	make DESTDIR="$pkgdir" install -C build
}

sha512sums="
88cb6b60eab117ffb3e55f64e99349c73704272b8ab1595ca06ba1bd4027636116673bbfcdf67f8790f0aa59fd0b2bc77522ab87e62f678431126d5cfa4d7973  noson-2.8.6.tar.gz
"
